﻿
using UnityEngine;
// 动画的定义用构造体
public struct AnimData
{
    // 目标对象正在控制的拼图
    public GameObject targetObject;

    // 目标位置 用于交换时朝向
    public Vector3 targetPosition;

    // 持续时间（动画持续多少秒，用多长时间去交换）
    public float duration;

    public AnimData(GameObject target, Vector3 pos, float dur)
    {
        targetObject = target;
        targetPosition = pos;
        duration = dur;
    }
}